export const usetype = () => {
    const data = [
          { type: "碰撞", value: 31 },
          { type: "追尾", value: 5 },
          { type: "刮蹭", value: 3 },
          { type: "翻车", value: 2 },
          { type: "碾压", value: 1 },
          { type: "其他", value: 1 },
    ];
    const config = {
          appendPadding: 10,
          xField: "type",
          yField: "value",
          seriesField: "type",
          radius: 0.9,
          label: {
                offset: -15
          },
          interactions: [{ type: "element-active" }],
          height: 270
    };
    return {
          data,
          config
    }
}